package com.achang.achangmall.member.service;

import com.achang.achangmall.member.vo.MemberUserLoginVo;
import com.achang.achangmall.member.vo.MemberUserRegisterVo;
import com.achang.achangmall.member.vo.SocialUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.achang.common.utils.PageUtils;
import com.achang.achangmall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author achang
 * @email 995931576@qq.com
 * @date 2021-09-20 23:12:38
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberUserRegisterVo vo) throws Exception;

    MemberEntity login(MemberUserLoginVo vo);

    /**
     * 社交用户的登录
     * @param socialUser
     * @return
     */
    MemberEntity login(SocialUser socialUser) throws Exception;

}

